<!-- This is encsrv, a collection of initialization scripts to set up encryption for a web and database server, for GNU/Debian Linux Distributions based on systemd, particularly for Debian 8.

Copyright (C) 2016, gabocze

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

To contact the authors of encsrv visit https://gna.org/users/gabocze -->

<!-- Descripción de esta plantilla: 1) título, texto, tags (texto).
2) guardar (localmente).-->

<! DOCTYPE html>
<html ng-app="encsrv">
<head>
<meta charset="utf-8">
<title>Handle your notes</title>
<meta name="viewport" content="intial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<link href="lib/ionic/css/ionic.css" rel="stylesheet"/>
<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="bower_components/x2js/xml2json.min.js"></script>
<script src="bower_components/angular-xml/angular-xml.min.js"></script>
<script src="js/app.js"></script>
<script src="js/notes.js"></script>
<script src="lib/ngCordova/dist/ng-cordova.js"></script>
<script src="cordova.js"></script>
</head>
<body ng-controller="NoteCtrl">
<ion-side-menus>
<ion-side-menu-content>
<ion-header-bar class="bar-dark"><h1>create/modify note</h1><button class="button button-icon ion-plus" ng-click="clean()">New note</button></ion-header-bar>
<ion-content scroll="false">
<input ng-model="currentNote.title"/>
<textarea ng-model="currentNote.body"/>
<input ng-model="currentNote.tags"/>
<button ng-click="insertAndSave(currentNote)">Save </button>
<button ng-click="deleteAndPersist (currentIndex)">Delete </button>
</ion-content>
</ion-side-menu-content>
<ion-side-menu side="left">
<ion-header-bar class="bar-dark"><h1>Notes</h1></ion-header-bar>
<ion-content scroll="false">
<ion-list>
<ion-item ng-repeat="note in notes" ng-click="select($index)" ng-class="{active ? $index == currentIndex}">{{note.title}}
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
</ion-side-menus>
</body>